package com.lvkerry.generate.bean;

/**
 * @author Kerry on 18/03/07
 */

public class UserBean {

    private Long userId;
    private String avatarUrl;
    private Integer isDeleted;
    private String name;
    private String phoneNumber;
    private String username;

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        UserBean userBean = (UserBean) o;

        if (userId != null ? !userId.equals(userBean.userId) : userBean.userId != null) return false;
        if (avatarUrl != null ? !avatarUrl.equals(userBean.avatarUrl) : userBean.avatarUrl != null) return false;
        if (isDeleted != null ? !isDeleted.equals(userBean.isDeleted) : userBean.isDeleted != null) return false;
        if (name != null ? !name.equals(userBean.name) : userBean.name != null) return false;
        if (phoneNumber != null ? !phoneNumber.equals(userBean.phoneNumber) : userBean.phoneNumber != null)
            return false;
        return username != null ? username.equals(userBean.username) : userBean.username == null;
    }

    @Override
    public int hashCode() {
        int result = userId != null ? userId.hashCode() : 0;
        result = 31 * result + (avatarUrl != null ? avatarUrl.hashCode() : 0);
        result = 31 * result + (isDeleted != null ? isDeleted.hashCode() : 0);
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (phoneNumber != null ? phoneNumber.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "UserBean{" +
                "userId=" + userId +
                ", avatarUrl='" + avatarUrl + '\'' +
                ", isDeleted=" + isDeleted +
                ", name='" + name + '\'' +
                ", phoneNumber='" + phoneNumber + '\'' +
                ", username='" + username + '\'' +
                '}';
    }
}
